//
//  AppDelegate.m
//  GTTool
//
//  Created by GTO on 2018/8/24.
//  Copyright © 2018年 GTO. All rights reserved.
//

#import "AppDelegate.h"
#import "IQKeyboardManager.h"
#import "BaseUITabBarController.h"
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    [self setIQKeyboardManager];
    [self initMianVc];
    return YES;
}
- (void)setIQKeyboardManager{
    IQKeyboardManager *keyboardManager = [IQKeyboardManager sharedManager];
    keyboardManager.enableAutoToolbar = YES;
}
- (void)initMianVc{
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    BaseUITabBarController *tab = [[BaseUITabBarController alloc] init];
    self.window.rootViewController = tab;
    [self.window makeKeyAndVisible];
    
}
/// 程序失去焦点
- (void)applicationWillResignActive:(UIApplication *)application {
   
}

/// 程序进入后台
- (void)applicationDidEnterBackground:(UIApplication *)application {

}

/// 程序将进入后台
- (void)applicationWillEnterForeground:(UIApplication *)application {

}

/// 程序获取焦点
- (void)applicationDidBecomeActive:(UIApplication *)application {

}

/// 程序即将退出
- (void)applicationWillTerminate:(UIApplication *)application {
 
}


@end
